/*
 * @Author: xiehangyun 
 * @Date: 2025-05-10 22:23:33 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2025-08-26 16:07:07
 */

.user {
    position: relative;
    padding-left: 20rpx;
    padding-right: 20rpx;
    background-image: url('./img/user_bg.png'); // 替换为你的背景图片路径
    background-size: 100% auto; // 背景图片覆盖整个区域
    background-repeat: no-repeat; // 防止背景图片重复
    background-position: 0px -20rpx; // 背景图片居中
}

.title {
    font-size: 30rpx;
    // font-weight: bold;
    color: #333;

    :global(.nut-cell-left) {
        width: 100%;
    }

    :global(.nut-cell-title) {
        width: 100%;
    }

    :global(.nut-cell-extra) {
        flex: 0.07;
    }

    &:active {
        background-color: #f0f0f0; // 按下时的背景色
    }

}


.avatar {
    margin-top: 14rpx;
}

.nickname {
    margin-top: 20rpx;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.userId {
    font-size: 12px; // 比昵称小一点
    color: #333; // 颜色稍微淡一点
    margin: 10rpx 0rpx;
}

.userinfo {
    margin: 10rpx -24rpx;
    font-size: 14px;
    color: #999;
}

.phone {
    margin-top: 20rpx;
    font-size: 14px;
    color: #999;
}

.right_btn {
    float: right;
    background-color: rgba(0, 0, 0, 0.4);
    border-top-left-radius: 30rpx;
    border-bottom-left-radius: 30rpx;
    padding: 14rpx;
    color: #ffffff;
    text-indent: 14rpx;
    margin: 5px 0px;
}

.active {
    background-color: #f0f0f0; // 按下时的背景色
    // transition: background-color 0.15s ease;
}

.contact {

    .contact_btn {
        height: 40rpx;

        &:before {
            background: none;
        }

        :global(.nut-button-wrap) {
            justify-content: left;
        }
    }

    :global(.nut-button-wrap) {
        text-align: right;
    }

    :global(.nut-icon) {
        font-size: 20rpx;
    }

    :global(.nut-icon-ArrowRight) {
        height: 40rpx;
        font-size: 40rpx;
        width: 40rpx;
    }

}

/* 订单数量标记样式 */
.orderItem {
    position: relative;
}

.orderBadge {
    position: absolute;
    top: -8rpx;
    right: -8rpx;
    width: 30rpx;
    height: 30rpx;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 20rpx;
    text-align: center;
    line-height: 30rpx;
    z-index: 1;
}

.body {
    display: flex;
    width: 100%;
    height: 100rpx;
    justify-content: space-around;
    padding: 30rpx 0rpx;

    .tab_item {
        position: relative;
        display: block;
        text-align: center;
        padding: 4rpx 40rpx;

        .tab_icon {
            width: 46rpx;
            height: 46rpx;
            display: inline-block;
            margin-top: 4rpx;
            position: relative;
        }

        .badge {
            position: absolute;
            top: 0rpx;
            right: 20rpx;
            width: 30rpx;
            height: 30rpx;
            background-color: #fd7901;
            border-radius: 50%;
            color: white;
            font-size: 20rpx;
            text-align: center;
            line-height: 28rpx;
        }

        &.active .tab_text {
            color: #fd7901;
        }

        .tab_text {
            font-size: 24rpx;
        }
    }
}